<!--  -->
<template>
  <div class="pagination">
    <span>共400条</span>
    <input
      class="page-select"
      type="text"
      readonly="readonly"
      placeholder="请选择"
    />
    <button type="button" class="btn-prev"></button>
    <ul class="pager">
        <li>1</li>
        <li>2</li>
    </ul>
    <button type="button" class="btn-next"></button>
    <span class="page-skip">前往<input type="number" autocomplete="off" min="1" max="4" @keyup.enter="keyenter($event)" >页</span>
  </div>
</template>

<script>
export default {
  name: "Pagination",
  data() {
    return {};
  },

  components: {},

  computed: {},

  mounted() {},

  methods: {
      keyenter(event){
          alert(event.code)
          console.log(event)
      }
  },
};
</script>
<style  scoped>
.pagination {
  width: 100%;
  line-height: 40px;
}
.page-select {
  display: inline-block;
  padding: 2px 0;
  border: 2px solid #27c51b;
  text-align: center;
  width: 8%;
  height: 100%;
}
.page-select:focus {
  border: 2px solid #2083e6;
  outline: 0;
}
.page-select > option {
  line-height: 40px;
}
.btn-prev{
    background-color: rgba(0, 0, 0, 0);
    border: 0;
}
.btn-prev:focus{
    outline: 0;
    border: 0;
}
.btn-prev::before{
    content: "<";
}
.btn-next{
    background-color: rgba(0, 0, 0, 0);
    border: 0;
}
.btn-next:focus{
    outline: 0;
    border: 0;
}
.btn-next::before{
    content: ">";
}
.pager{
    display: inline-block;
}
.pager>li{
    display: inline-block;
    line-height: 50%;
    margin: 0 5px;
}
.page-skip{
 
}
</style>